ifneq ($(KERNELRELEASE),)
obj-m := coffee2dev.o

else
#KDIR ?= /lib/modules/$(shell uname -r)/build
KDIR ?= /carme/kernel/linux-2.6.28.10-CARME
PWD  := $(shell pwd)

all:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

clean:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean	

endif
